﻿#define _CRT_SECURE_NO_WARNINGS//模拟实现strcat
#include<stdio.h>
#include<string.h>
my_strcat(char* p1, char* p2)
{
	while (*p1 != '\0')
	{
		p1++;
	}
	while (*p1++ = *p2++)
	{
		;
	}
}
int main()
{
	char arr1[20] = "abcd";
	char arr2[] = "efgm";
	/*strcat(arr1, arr2);
	printf("%s\n", arr1);*/
	my_strcat(arr1, arr2);
	printf("%s\n", arr1);

	return 0;
}